package com.airbat.prize.common.enums;

import com.airbat.prize.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 案件类型
 */
@Getter
@AllArgsConstructor
public enum CaseMergeGoodsEnum implements IntArrayValuable {

    //数据类型 1枪支 2公职 3资产 4判决资产 5文书
    GUN(1, "枪支"),
    OFFICE(2, "公职"),
    REGISTER_ASSETS(31, "立案资产"),
    TRANSFER_ASSETS(32, "移送资产"),
    LITIGATE_ASSETS(33, "公诉资产"),
    FIRST_ASSETS(34, "一审资产"),
    TWO_ASSETS(35, "二审资产"),
    FIRST_ADJUDGE_ASSETS(41, "一审判处资产"),
    TWO_ADJUDGE_ASSETS(42, "二审判处资产"),
    REGISTER_PAPERWORK(51, "立案文书"),
    TRANSFER_APERWORK(52, "移送文书"),
    LITIGATE_PAPERWORK(53, "公诉文书"),
    FIRST_PAPERWORK(54, "一审文书"),
    TWO_PAPERWORK(55, "二审文书");

    /**
     * 值
     */
    private final Integer value;
    /**
     * 名称
     */
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CaseMergeGoodsEnum::getValue).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }
}